package com.lleice.service.qo.sys;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 
 * @author lizihao
 *
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel("新增或修改资源请求数据")
public class ResourceReq implements Serializable{/**
	 * 
	 */
	private static final long serialVersionUID = -7942515531846544630L;

		@ApiModelProperty(value = "资源id,不为空则是新增")
		private String id;
	
		@NotBlank(message="资源名称不能为空")
	 	@ApiModelProperty(value = "资源名称")
	    private String resourceName;

	    @ApiModelProperty(value = "资源编码,XXX:XXX:XXX")
	    private String resourceCode;

	    @ApiModelProperty(value = "父资源ID")
	    private String parentId;
	    
	    @ApiModelProperty(value = "0-菜单,1-按钮")
	    private Integer resourceType;

	    @ApiModelProperty(value = "路径")
	    private String resourcePath;
	    
	    @ApiModelProperty(value = "0-启用,1-禁用")
	    private Integer isEnable;

	    @ApiModelProperty(value = "排序")
	    private Integer sortNum;
}
